﻿
using System.Reflection;

using Mono.Cecil;
public class LuaFieldDefinition : LuaFieldReference
{
    private readonly LuaTypeDefinition _owned;
    public LuaFieldDefinition(LuaModuleDefinition module, LuaTypeDefinition owned, FieldDefinition self) : base(module, self)
    {
        _owned = owned;
    }

    internal void WriteTo(ICodeWriter writer)
    {
        writer.CodeLine($"this.{Name} = nil");
    }
}

